﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Winner.Game.Entity.DTOModel
{

    public class OperateResult
    {

        public ResultState State { get; set; }

        public string Message { get; set; }

        //基类object
        public object Data { get; set; }

        public OperateResult(ResultState state, string msg)
        {
            this.State = state;
            this.Message = msg;
        }

        public OperateResult(ResultState state, string msg,object data)
        {
            this.State = state;
            this.Message = msg;
            this.Data = data;
        }

    }
    public enum ResultState
    {
        Success = 1,
        Error = -1
    }

}
